/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package racer.client.data;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 *
 * @author Lieven
 */
public class RegEx {

    //used by parser (incomingFromServer)    
    //also to load map in TiledMap etc
    
    public static boolean Matches(Matcher m,int index){
        return m.find(index);
        
    }
    public static Matcher getMatcher(String expressie,String msg){
       Pattern patroon = Pattern.compile(expressie,Pattern.CASE_INSENSITIVE);
       Matcher vergelijk = patroon.matcher(msg);
       
       return vergelijk;
        
    }        
    
    
    
    
}

